#!/bin/bash
###
 # @Description: 
 # @Author: maskMan
 # @LastEditTime: 2024-11-08 08:55:25
### 

# 获取当前路径
TARGET_DIR=$(pwd)

# 查找与当前路径相关的进程并终止它们
lsof +D "$TARGET_DIR" | awk 'NR>1 {print $2}' | xargs -r kill -9

echo "已终止与当前路径 ($TARGET_DIR) 相关的进程。"